import requests
from config import RunConfig

def 分页查询钻孔任务(para):
    response = requests.post(
        url=RunConfig.url + "/wt/task/drill/page?page=1&perPage=10",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 分页查询勘探任务(para):
    response = requests.post(
        url=RunConfig.url + "/wt/task/explore/page?page=1&perPage=10",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 删除钻孔任务(para):
    response = requests.post(
        url=RunConfig.url + "/task/drill/{id}",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 分页查询物探任务书(para):
    response = requests.post(
        url=RunConfig.url + "/wt/task/page?page=1&perPage=10",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 勘探单位下拉功能(para):
    response = requests.get(
        url=RunConfig.url + "exploration/unit/list?name=&projectExtId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 变更任务保存(para):
    response = requests.post(
        url=RunConfig.url + "/wt/task/change/update",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 变更任务查询(para):
    response = requests.get(
        url=RunConfig.url + "wt/task/change/info/{id}",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探任务书删除(para):
    response = requests.get(
        url=RunConfig.url + "wt/task/delete/{id}",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 查询任务书(para):
    response = requests.get(
        url=RunConfig.url + "wt/task/info/{id}",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 任务书文件保存(para):
    response = requests.post(
        url=RunConfig.url + "/wt/phy/file/save",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 修改钻孔任务(para):
    response = requests.post(
        url=RunConfig.url + "/task/drill/update",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 变更任务下载(para):
    response = requests.get(
        url=RunConfig.url + "wt/task/change/export/{id}",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 删除勘探任务(para):
    response = requests.post(
        url=RunConfig.url + "/task/explore/{id}",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 变更任务查询列表(para):
    response = requests.get(
        url=RunConfig.url + "wt/task/change/list/{id}",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 删除跨孔任务(para):
    response = requests.post(
        url=RunConfig.url + "/task/cross/{id}",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 物探任务书导出(para):
    response = requests.post(
        url=RunConfig.url + "/wt/task/export/{id}",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 修改跨孔任务(para):
    response = requests.post(
        url=RunConfig.url + "/task/cross/update",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 分配任务(para):
    response = requests.post(
        url=RunConfig.url + "/wt/task/assign",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 分页查询跨孔任务(para):
    response = requests.post(
        url=RunConfig.url + "/wt/task/cross/page?page=1&perPage=10",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 自揽任务书导入(para):
    response = requests.post(
        url=RunConfig.url + "/wt/task/import?projectId=",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 修改勘探任务(para):
    response = requests.post(
        url=RunConfig.url + "/task/explore/update",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response
